﻿export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/',
        redirect: '/user/login',
      },
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './User/login',
          },
        ],
      },
      {
        path:'/admin',
        component: '../layouts/SecurityLayout',
        routes: [
          {
            path: '/',
            component: '../layouts/BasicLayout',
            routes: [
              {
                path: '/admin/orderManage',
                name: 'orderManage',
                routes:[
                  {
                    path:'/admin/orderManage/orderList',
                    name:'orderList',
                    component: './order/OrderList/index',
                  }
                ]
              },
              {
                path:'/admin/addOrder',
                name: 'addOrder',
                component: './order/AddOrder/index',
                hideInMenu: true,
              }
            ]
          }
        ]
      },
      // {
      //   path: '/docs/:type?',
      //   component: './docs',
      // },
    ],
  },
  {
    component: './404',
  },
];
